﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BAL
{
    public class DoUser
    {

        public static void InsertUser(string username, string password)
        {
            User user = new User(username, password);
            DALUser daluser = new DALUser(user);
            daluser.InsertUser();
        }

        public  bool checkloglin(string username,string password)
        {
            User user = new User(username, password);
            DALUser daluser = new DALUser(user);
            bool ispass = daluser.checklogin();
            return ispass;
        }
    }
}
